package com.zh.common.vo;


import lombok.Data;

@Data
public class ErrorResult<T> extends PageQuery {
    private int code;
    private String msg = "success";
    private boolean success;
    private String message;
    private T data;

    public ErrorResult() {
        this.code = 500;
    }

    public ErrorResult(int errorCode, String errorMsg) {
        this.code = errorCode;
        this.msg = errorMsg;
        this.message = errorMsg;
    }
}


